package com.iman.Confucius.domain;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
/**
 * 这个类是影射   保存  文字的时候     将详情保存在mongodb中的方法
 * @author Thinkpad
 *
 */
@Document(collection = "drm_articles_detail")
public class BaseMessageDetailBean {
	public static final String DETAIL_CONTENT =  "detailContent";
	public static final String UPDATE_STATUS =  "updateStatus";
	//保存内容的用户 商家  管理员  ID
	public static final String SELLER_ID = "sellerId";
	public static final String CREATE_TIME = "createTime";
	public static final String UPDATE_TIME = "updateTime";
	public static final String UPDATE_COUNT = "updateCount";
	public static final String ID = "_id";
	
	@Id
	private String id;
	private String detailContent;
	private int updateStatus;
	private long sellerId;
	private int updateCount;
	private String productId;
	private Date createTime;
	private Date updateTime;
	

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDetailContent() {
		return detailContent;
	}

	public void setDetailContent(String detailContent) {
		this.detailContent = detailContent;
	}

	public int getUpdateStatus() {
		return updateStatus;
	}

	public void setUpdateStatus(int updateStatus) {
		this.updateStatus = updateStatus;
	}

	public long getSellerId() {
		return sellerId;
	}

	public void setSellerId(long sellerId) {
		this.sellerId = sellerId;
	}


	public int getUpdateCount() {
		return updateCount;
	}

	public void setUpdateCount(int updateCount) {
		this.updateCount = updateCount;
	}
	
	
	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public BaseMessageDetailBean() {
		super();
	}
	

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "BaseProductDetailBean [id=" + id + ", detailContent="
				+ detailContent + ", updateStatus=" + updateStatus
				+ ", sellerId=" + sellerId + ", updateCount=" + updateCount
				+ "]";
	}

	

}
